/**
 * 
 */
package com.wolfpire.workflow.dao;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.wolfpire.system.common.base.dao.IBaseHibernateDao;
import com.wolfpire.workflow.om.Holiday;

/**
 * @author lihd
 *
 */
public interface HolidayDao extends IBaseHibernateDao<Holiday, Long> {
	public Date getWorkDays(java.util.Date curDate, Integer days) throws Exception;
	
	/**
	 * 通过时间和状态查询节假日或者补班日
	 * @param date日期,可以是年如2014年,可以是年月如2014-05,可是是日如2014-05-01,年月日之间的区分一定要使用“-”
	 * @param status假日状态，0放假，1补班
	 * @return
	 * @throws ParseException 
	 */
	public List<Map<String, Object>> queryHolidayByDateAndStatus(String date,String status) throws ParseException;
	
	public Holiday getHoliday(Date holidayTime);
	
	public Object getHolidayByHolidayTime(String holidayTime) throws ParseException;
}
